<#layout title="Storage" />
<h1>Storage <span id="installing-yii"></span><a href="javascript:void(0)" class="hashlink">¶</a></h1>
<pre>
    <code class="hljs sql">
        new LAM.Storage('mt11',localStorage).find('jobId',1,function (index,id) {
		var data={
			"id":id,
			"jobId":id,
			"job":"程序员",
			"name":"李明",
			"addres":"雨花台区软件大道",
			"city":"南京",
			"sex":"男"
		};
		if(-1 === index){
			this.add(data);
		}else{
			this.update(index,data);
			text = this.get(index).name;
			this.remove(index);
			console.log(text);

		}
	});
</code>
</pre>
<div class="alert alert-warning" role="alert">
    Warning! Better check yourself, you're not looking too good.
</div>
